
import Http from './http.js';

// 封装各种接口请求

export default {
    postTest: (api,data) => Http.post(api, data),
    baseURL: Http.baseURL,

    // 公共 ----------------------------------------------------------------------------------------------------
    postGetDevKindList: (data) => Http.post('/screenvue/getDevKindList', data),             // 设备种类列表
    postGetPersonTypeList: (data) => Http.post('/screenvue/getPersonTypeList', data),       // 人员类型列表
    postHiddenLevel: (data) => Http.post('/screenvue/hiddenLevel', data),                   // 隐患等级列表
    postTasksLevel: (data) => Http.post('/screenvue/tasksLevel', data),                     // 任务来源列表
    postGetKnowledgeTypeList: (data) => Http.post('/screenvue/getKnowledgeTypeList', data), // 知识库类型
    // ----------------------------------------- end -----------------------------------------------------------


    // 首页 ----------------------------------------------------------------------------------------------------
    postGetBoroughCodeList: (data) => Http.post('/screenvue/getBoroughCodeList', data),     // 获取县区列表
    postGetHomeBannerLeft: (data) => Http.post('/screenvue/getHomeBannerLeft', data),       // 顶部左侧4列数据项
    postScreennums: (data) => Http.post('/screenvue/screennums', data),                     // 大屏隐患，超期，监察,公告个数
    postScreenlookm: (data) => Http.post('/screenvue/screenlookm', data),                   // 预警信息
    postScreenlookTask: (data) => Http.post('/screenvue/screenlookTask', data),             // 监察情况
    postScreenlookdevice: (data) => Http.post('/screenvue/screenlookdevice', data),         // 设备年度数量趋势
    postGetDevInfo: (data) => Http.post('/screenvue/getDevInfo', data),                     // 左侧图表--设备概况
    postGetComsInfo: (data) => Http.post('/screenvue/getComsInfo', data),                   // 左侧图表--单位概况
    postGetPersonInfo: (data) => Http.post('/screenvue/getPersonInfo', data),               // 左侧图表--人员概况 
    postGetMiddleMapBorough: (data) => Http.post('/screenvue/getMiddleMapBorough', data),   // 中部地图--县区详情 
    postGetMiddleMapTown: (data) => Http.post('/screenvue/getMiddleMapTown', data),         // 中部地图--乡镇详情
    postGetTalkingList: (data) => Http.post('/screenvue/getTalkingList', data),             // 公告列表
    postGetTalkingDetail: (data) => Http.post('/screenvue/getTalkingDetail', data),         // 公告详情
    postGetKnowledgeList: (data) => Http.post('/screenvue/getKnowledgeList', data),         // 知识库列表
    postGetKnowledgeDetail: (data) => Http.post('/screenvue/getKnowledgeDetail', data),     // 知识库详情
    // ----------------------------------------- end -----------------------------------------------------------


    // 列表+详情页 ----------------------------------------------------------------------------------------------------
    postGetUseDevList: (data) => Http.post('/screenvue/getUseDevList', data),               // 在用设备列表
    postGetDevInfoById: (data) => Http.post('/screenvue/getDevInfoById', data),             // 设备详情页
    postGetDevChar: (data) => Http.post('/screenvue/getDevChar', data),                     // 设备统计图表页

    postGetComInfoList: (data) => Http.post('/screenvue/getComInfoList', data),             // 使用单位列表
    postGetComBaseInfoById: (data) => Http.post('/screenvue/getComBaseInfoById', data),     // 单位详情页1
    postGetComAidedInfoById: (data) => Http.post('/screenvue/getComAidedInfoById', data),   // 单位详情页2
    postGetComChar: (data) => Http.post('/screenvue/getComChar', data),                     // 单位统计图表
    postGetDevMap: (data) => Http.post('/screenvue/getDevMap', data),                       // 单位统计地图

    postGetPersonInfoById: (data) => Http.post('/screenvue/getPersonInfoById', data),       // 人员列表
    postGetPersonDetail: (data) => Http.post('/screenvue/getPersonDetail', data),           // 人员详情

    postGetHiddenList: (data) => Http.post('/screenvue/getHiddenList', data),               // 隐患列表
    postGetHiddenDetails: (data) => Http.post('/screenvue/getHiddenDetails', data),         // 隐患任务详情
    postFindtaskDetails: (data) => Http.post('/screenvue/findtaskDetails', data),           // 隐患任务详情 

    postGetOutDeviceList: (data) => Http.post('/screenvue/getOutDeviceList', data),         // 超期未检列表

    postGetMonitorTList: (data) => Http.post('/screenvue/getMonitorTList', data),           // 监察任务列表

    postGetNearDeviceList: (data) => Http.post('/screenvue/getNearDeviceList', data),       // 及期未检列表

    postGetEmergencyMList: (data) => Http.post('/screenvue/getEmergencyMList', data),       // 电梯应急当月列表

    postGetEmergencyAList: (data) => Http.post('/screenvue/getEmergencyAList', data),       // 电梯应急累计列表
    postGetEmergencyDetail: (data) => Http.post('/screenvue/getEmergencyDetail', data),     // 电梯应急详情
    
    postGetDeviceSList: (data) => Http.post('/screenvue/getDeviceSList', data),             // 检验检测列表

    postGetMHiddenList: (data) => Http.post('/screenvue/getMHiddenList', data),             // 当月监察列表

    postGetMWornHiddenList: (data) => Http.post('/screenvue/getMWornHiddenList', data),     // 当月预警监察列表
    postGetMWornMonitorList: (data) => Http.post('/screenvue/getMWornMonitorList', data),   // 累计预警监察列表

    postGetOperToldList: (data) => Http.post('/screenvue/getOperToldList', data),           // 施工告知列表
    postGetOperToldDetail: (data) => Http.post('/screenvue/getOperToldDetail', data),       // 施工告知详情

    postGetOperRegList: (data) => Http.post('/screenvue/getOperRegList', data),             // 使用登记列表
    postGetOperRegDetail: (data) => Http.post('/screenvue/getOperRegDetail', data),         // 使用登记详情
    
    // ----------------------------------------- end -----------------------------------------------------------


    // 应急指挥  ----------------------------------------------------------------------------------------------------
    postCheckHasRescue: (data) => Http.post('/screenvue/checkHasRescue', data),             // 判断是否存在救援中任务
    postGetComInfoForAssociation: (data) => Http.post('/screenvue/getComInfoForAssociation', data),         // 单位联想
    postGetRescueType: (data) => Http.post('/screenvue/getRescueType', data),               // 获取事故类型
    postSaveRescueType: (data) => Http.post('/screenvue/saveRescueType', data),             // 保存救援信息接口
    postGetRescueInfoById: (data) => Http.post('/screenvue/getRescueInfoById', data),       // 返回编辑
    postUpdateRescueInfoById: (data) => Http.post('/screenvue/updateRescueInfoById', data), // 更新事故信息


    postRescueScreenInfo: (data) => Http.post('/screenvue/rescueScreenInfo', data),         // 获取救援相关信息
    postGetRescueDynmic: (data) => Http.post('/screenvue/getRescueDynmic', data),           // 获取事故动态
    postGetSchedulingList: (data) => Http.post('/screenvue/getSchedulingList', data),       // 调度信息列表
    postGetPlanList: (data) => Http.post('/screenvue/getPlanList', data),                   // 获取应急预案列表
    postGetPlanInfoById: (data) => Http.post('/screenvue/getPlanInfoById', data),           // 获取预案内容
    postGetMonitorByComId: (data) => Http.post('/screenvue/getMonitorByComId', data),       // 获取监察信息
    postEndRescueInfoById: (data) => Http.post('/screenvue/endRescueInfoById', data),       // 结束救援
    postSaveRescueDynamic: (data) => Http.post('/screenvue/saveRescueDynamic', data),       // 应急调度
    postUpdateRescueDynmic: (data) => Http.post('/screenvue/updateRescueDynmic', data),     // 响应事件动态
    postGetMapInfoByComCoordinate: (data) => Http.post('/screenvue/getMapInfoByComCoordinate', data),       // 获取范围内可调度资源信息

    // 详细地图
    postGetDetailMapInfo: (data) => Http.post('/screenvue/getDetailMapInfo', data),       // 地图大头针数据获取

    

    // 其他
    getWeatherNow: (data) => Http.getWeather('/v7/weather/now', data),         // 获取实时天气

    
    // 新增页面-【维保监管】
    getScreenDataWbFive: (data) => Http.post('/screenvue/getScreenDataWbFive', data),         // 维保电梯数量单位前五统计
    getKrEleList: (data) => Http.post('/screenvue/getKrEleList', data),                       // 困人率较高电梯签约维保单位
    getWbComData: (data) => Http.post('/screenvue/getWbComData', data),                       // 维保单位数量
    areaEleList: (data) => Http.post('/screenvue/areaEleList', data),                         // 区划维保统计分析
    getWbStaffData: (data) => Http.post('/screenvue/getWbStaffData', data),                   // 维保人员持证占比
    getWbAreaList: (data) => Http.post('/screenvue/getWbAreaList', data),                     // 区划维保单位统计
    getEleGzData: (data) => Http.post('/screenvue/getEleGzData', data),                       // 电梯故障分类统计
    
    // 新增页面-【电梯应急救援统计】
    getThreeMonKEleList: (data) => Http.post('/screenvue/getThreeMonKEleList', data),                 // 近三月困人故障最多使用单位统计
    getThreeMonBrandList: (data) => Http.post('/screenvue/getThreeMonBrandList', data),               // 近三个月故障最高电梯品牌统计
    getThreeMonAreaList: (data) => Http.post('/screenvue/getThreeMonAreaList', data),                 // 近三月应急处置场所统计
    getEleGzInfoList: (data) => Http.post('/screenvue/getEleGzInfoList', data),                       // 近12月电梯故障趋势
    getThreeMonKWEleList: (data) => Http.post('/screenvue/getThreeMonKWEleList', data),               // 近12月电梯故障趋势
    getThreeMonEleTypeList: (data) => Http.post('/screenvue/getThreeMonEleTypeList', data),           // 近三个月故障电梯类型统计
    
    // 新增页面- 【预警】
    getJyjc: (data) => Http.post('/screenvue/getJyjc', data),           // 检验检测
    getJczf: (data) => Http.post('/screenvue/getJczf', data),           // 监察执法
    getYhcz: (data) => Http.post('/screenvue/getYhcz', data),           // 隐患处置
    
    // 新增页面- 【监察情况】
    getJcqk: (data) => Http.post('/screenvue/getJcqk', data),           // 监察情况














}